<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>{$tkd.title|parseTPL}</title>
	<meta name="keywords" content="{$tkd.keywords|parseTPL}" />
	<meta name="description" content="{$tkd.description|parsetpl}" />
	{include file="../common/head"}
</head>
<body>
{include file="../common/header"}
<section class="w-all">
	<nav class="mt20">
		<ul class="clearfix">
			<li><a href="{$pt.config.siteurl}" title="{$pt.config.sitename}首页"><i class="pticon pticon-home pticon-lg"></i> {$pt.config.sitename}首页</a><i class="pticon pticon-angle-right icon"></i></li>
			<li><a href="{link=novelsearch.index.category}" title="小说分类">小说分类</a></li>
		</ul>
	</nav>
	<div class="container clearfix mt20">
		<ul class="topindex">
			{block method="categorylist" name="list" pid=0 num=10}
			{section loop="list" skip=1 limit=12}
			<li {if ($i.order%3==2)}class="mr0"{/if}>
				<div class="card">
					<div class="header line">
						<h3>{$loop.name}小说</h3>
					</div>
					<div class="body">
						<ul class="rightlist">
							{block method="novellist" name="records" category=$loop.id num=10}
							{section loop=$records item=record}
							<li><i {if $i.order<4}class="first"{/if}>{$i.order}</i><span><a href="{$loop.author.url}" title="{$loop.author.name} 作品大全">{$loop.author.name}</a></span><a href="{$record.url.info}" title="{$record.novel.name}">{$record.novel.name}</a></li>
							{/section}
						</ul>
					</div>
					<div class="footer tar">
						<a href="{link='novelsearch.list.category' key=$loop.key}">查看所有{$loop.name}小说>></a>
					</div>
				</div>
			</li>
			{/section}
		</ul>
	</div>
</section>
{include file="../common/footer"}
<script type="text/javascript">
    (function () {
        var ua = navigator.userAgent.toLowerCase();
        if (/ipad/i.test(ua) || /iphone/i.test(ua) || /windows mobile/i.test(ua) || /android/i.test(ua)) {
            var u = "<?=ltrim($_SERVER['REQUEST_URI'],'/')?>";
            setTimeout(function () {
                window.location.href = "{$pt.config.wap_domain}/" + u;
            }, 300)
        }
    })();
</script>
</body>
</html>